FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > AddChart Method : AddChart(CellRange[],Type,Int32,Int32,Int32,Int32,ChartViewType,Boolean) Method |
true
the new chart has a default legend area; otherwise, there is no legend area.
'Declaration Public Overloads Function AddChart( _ ByVal cellRanges() As CellRange, _ ByVal seriesType As Type, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal x As Integer, _ ByVal y As Integer, _ ByVal viewType As ChartViewType, _ ByVal showLegend As Boolean _ ) As SpreadChart
'Usage Dim instance As SheetView Dim cellRanges() As CellRange Dim seriesType As Type Dim width As Integer Dim height As Integer Dim x As Integer Dim y As Integer Dim viewType As ChartViewType Dim showLegend As Boolean Dim value As SpreadChart value = instance.AddChart(cellRanges, seriesType, width, height, x, y, viewType, showLegend)
public SpreadChart AddChart( CellRange[] cellRanges, Type seriesType, int width, int height, int x, int y, ChartViewType viewType, bool showLegend )
true
the new chart has a default legend area; otherwise, there is no legend area.FarPoint.Web.Spread.Model.CellRange celRange1 = new FarPoint.Web.Spread.Model.CellRange(0, 0, 7, 2); FarPoint.Web.Spread.Model.CellRange celRange2 = new FarPoint.Web.Spread.Model.CellRange(0, 2, 7, 2); FpSpread1.Sheets[0].AddChart(new FarPoint.Web.Spread.Model.CellRange[] { celRange1, celRange2 }, typeof(FarPoint.Web.Chart.BarSeries), 400, 400, 0, 0, FarPoint.Web.Chart.ChartViewType.View2D, false);
Dim celRange1 As New FarPoint.Web.Spread.Model.CellRange(0, 0, 7, 2) Dim celRange2 As New FarPoint.Web.Spread.Model.CellRange(0, 2, 7, 2) FpSpread1.Sheets(0).AddChart(New FarPoint.Web.Spread.Model.CellRange() {celRange1, celRange2}, GetType(FarPoint.Web.Chart.BarSeries), 400, 400, 0, 0, FarPoint.Web.Chart.ChartViewType.View2D, False)
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6